﻿#region Copyright

// /*
// SilverlightInEnterprise
// SilverlightInEnterprise.Modules.Case
// CaseScreenDefinition.cs
// 
// Author: Matt Van Horn
// Created 11/15/2011 8:55 PM
// Copyright: Silverlight in the Enterprise www.slinenterprise.com
// 
// Licensed under MS-PL http://www.opensource.org/licenses/MS-PL and while you 
// may use this in anyway you see fit and owe us nothing to do so, we wouldn't mind knowing that you got value out of the work we did (so we will do more) so 
// we ask that you leave a comment on www.slinenterprise.com or on the codeplex site slinenterprise.codeplex.com
// 
// */

#endregion

using SilverlightInEnterprise.Common.Screens;
using SilverlightInEnterprise.Modules.Case.ViewModels;

namespace SilverlightInEnterprise.Modules.Case
{
    public class CaseScreenDefinition : ScreenDefinition
    {
        internal const string TYPE_NAME = "Case Screen";

        public CaseScreenDefinition()
            : base(
                typeof (CaseScreenViewModel), // instance of actual types of this screen
                TYPE_NAME, // name to use to find instances that are considered the same as this
                true, // allow more than one instance of this type of screen
                CaseScreenViewModel.AttemptChange,
                // callback to check to see if we are allowed to remote change the arguments of this screen
                CaseScreenViewModel.CreateInstance) // method that creates an instance of this screen for us
        {
            this.knownArguments = new string[]
                                      {
                                          "Id"
                                      };
        }
    }
}